home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’87 / Source ƒ.sit / Source ƒ / C ƒ / SoundPlay ƒ / Scope.ASM < prev    next >
MacBinary  |  1986-05-24  |  9.0 KB  |  [TEXT/EDIT]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sat May 24 00:19:08 1986, modified Sat May 24 00:19:08 1986, creator Macintosh Edit, type ASCII, 8174 bytes "Scope.ASM" , at 0x206e 860 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[EDIT]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 53 63 6f 70 65 2e | 41 53 4d 00 00 00 00 00 |..Scope.|ASM.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 45 44 49 | 54 01 00 00 00 00 00 00 |.TEXTEDI|T.......|
|00000050| 00 00 00 00 00 1f ee 00 | 00 03 5c 9a fa f1 bc 9a |........|..\.....|
|00000060| fa f1 bc 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ae 73 00 00 |........|.....s..|
|00000080| 3b 20 6d 6f 64 20 31 32 | 20 33 30 20 38 35 20 74 |; mod 12| 30 85 t|
|00000090| 73 68 20 2d 20 66 69 78 | 20 66 6f 72 20 6e 65 77 |sh - fix| for new|
|000000a0| 20 64 69 67 69 74 69 7a | 65 72 0d 3b 20 77 72 69 | digitiz|er.; wri|
|000000b0| 74 74 65 6e 20 35 20 32 | 37 20 38 35 20 54 6f 6d |tten 5 2|7 85 Tom|
|000000c0| 20 48 65 64 67 65 73 2c | 20 46 72 61 63 74 61 6c | Hedges,| Fractal|
|000000d0| 20 53 6f 66 74 77 61 72 | 65 0d 0d 3b 09 45 78 61 | Softwar|e..;.Exa|
|000000e0| 6d 70 6c 65 20 4f 73 63 | 69 6c 6c 6f 73 63 6f 70 |mple Osc|illoscop|
|000000f0| 65 20 50 72 6f 67 72 61 | 6d 0d 0d 09 58 44 45 46 |e Progra|m...XDEF|
|00000100| 09 53 74 61 72 74 0d 09 | 0d 3b 20 42 72 69 6e 67 |.Start..|.; Bring|
|00000110| 20 69 6e 20 61 6c 6c 20 | 74 68 65 20 64 69 72 74 | in all |the dirt|
|00000120| 79 20 63 6f 6e 73 74 61 | 6e 74 73 0d 09 49 4e 43 |y consta|nts..INC|
|00000130| 4c 55 44 45 09 53 79 73 | 45 71 75 58 2e 44 0d 0d |LUDE.Sys|EquX.D..|
|00000140| 3b 20 44 69 72 74 79 20 | 53 79 73 74 65 6d 20 43 |; Dirty |System C|
|00000150| 6f 6e 73 74 61 6e 74 73 | 0d 6d 79 52 6f 77 09 45 |onstants|.myRow.E|
|00000160| 51 55 09 34 35 09 09 09 | 3b 72 6f 77 20 77 65 20 |QU.45...|;row we |
|00000170| 73 74 61 72 74 20 6f 6e | 20 73 63 72 65 65 6e 0d |start on| screen.|
|00000180| 4d 6f 74 6f 72 4f 66 66 | 20 45 51 55 09 24 30 44 |MotorOff| EQU.$0D|
|00000190| 46 46 31 46 46 09 09 3b | 4d 6f 74 6f 72 20 4f 66 |FF1FF..;|Motor Of|
|000001a0| 66 20 43 6f 6e 74 72 6f | 6c 20 42 61 73 65 0d 74 |f Contro|l Base.t|
|000001b0| 72 69 67 43 09 45 51 55 | 09 33 35 30 09 09 09 3b |rigC.EQU|.350...;|
|000001c0| 74 72 69 67 67 65 72 20 | 63 6f 75 6e 74 20 6d 61 |trigger |count ma|
|000001d0| 78 0d 0d 0d 3b 20 44 61 | 74 61 0d 74 72 61 6e 73 |x...; Da|ta.trans|
|000001e0| 54 61 62 20 44 53 2e 42 | 09 32 35 36 09 09 09 3b |Tab DS.B|.256...;|
|000001f0| 74 72 61 6e 73 6c 61 74 | 65 20 74 61 62 6c 65 0d |translat|e table.|
|00000200| 6f 6c 64 56 61 6c 09 44 | 53 2e 57 09 35 31 32 09 |oldVal.D|S.W.512.|
|00000210| 09 09 3b 6f 6c 64 20 73 | 63 72 65 65 6e 20 62 69 |..;old s|creen bi|
|00000220| 74 0d 0d 0d 3b 49 6e 69 | 74 69 61 6c 69 7a 65 20 |t...;Ini|tialize |
|00000230| 41 6c 6c 20 4d 61 6e 61 | 67 65 72 73 0d 53 74 61 |All Mana|gers.Sta|
|00000240| 72 74 3a 09 50 45 41 09 | 2d 34 28 41 35 29 0d 09 |rt:.PEA.|-4(A5)..|
|00000250| 44 43 2e 57 09 24 41 38 | 36 45 09 3b 5f 49 6e 69 |DC.W.$A8|6E.;_Ini|
|00000260| 74 47 72 61 66 0d 09 44 | 43 2e 57 09 24 41 38 46 |tGraf..D|C.W.$A8F|
|00000270| 45 09 3b 5f 49 6e 69 74 | 46 6f 6e 74 73 0d 09 44 |E.;_Init|Fonts..D|
|00000280| 43 2e 57 09 24 41 39 31 | 32 09 3b 5f 49 6e 69 74 |C.W.$A91|2.;_Init|
|00000290| 57 69 6e 64 6f 77 73 0d | 09 44 43 2e 57 09 24 41 |Windows.|.DC.W.$A|
|000002a0| 39 33 30 09 3b 5f 49 6e | 69 74 4d 65 6e 75 73 0d |930.;_In|itMenus.|
|000002b0| 09 43 4c 52 2e 4c 09 2d | 28 53 50 29 0d 09 44 43 |.CLR.L.-|(SP)..DC|
|000002c0| 2e 57 09 24 41 39 37 42 | 09 3b 5f 49 6e 69 74 44 |.W.$A97B|.;_InitD|
|000002d0| 69 61 6c 6f 67 73 0d 0d | 3b 20 53 65 74 75 70 20 |ialogs..|; Setup |
|000002e0| 54 72 61 6e 73 6c 61 74 | 65 20 54 61 62 6c 65 20 |Translat|e Table |
|000002f0| 77 69 74 68 20 62 69 74 | 2d 72 65 76 65 72 73 65 |with bit|-reverse|
|00000300| 64 20 69 6e 64 69 63 65 | 73 0d 09 4c 45 41 09 74 |d indice|s..LEA.t|
|00000310| 72 61 6e 73 54 61 62 28 | 41 35 29 2c 41 30 09 09 |ransTab(|A5),A0..|
|00000320| 3b 61 64 64 72 65 73 73 | 20 74 72 61 6e 73 6c 61 |;address| transla|
|00000330| 74 65 20 74 61 62 6c 65 | 0d 09 4d 4f 56 45 51 09 |te table|..MOVEQ.|
|00000340| 23 30 2c 44 34 09 09 09 | 3b 69 6e 64 65 78 0d 09 |#0,D4...|;index..|
|00000350| 4d 4f 56 45 2e 57 09 23 | 32 35 35 2c 44 33 09 09 |MOVE.W.#|255,D3..|
|00000360| 09 3b 6f 75 74 65 72 20 | 6c 6f 6f 70 20 63 6f 75 |.;outer |loop cou|
|00000370| 6e 74 20 28 32 35 36 20 | 65 6e 74 72 69 65 73 29 |nt (256 |entries)|
|00000380| 0d 73 75 74 72 6c 70 3a | 09 4d 4f 56 45 51 09 23 |.sutrlp:|.MOVEQ.#|
|00000390| 37 2c 44 32 09 09 09 3b | 69 6e 6e 65 72 20 6c 6f |7,D2...;|inner lo|
|000003a0| 6f 70 20 63 6f 75 6e 74 | 65 72 20 28 38 20 62 69 |op count|er (8 bi|
|000003b0| 74 73 20 69 6e 20 62 79 | 74 65 29 0d 09 4d 4f 56 |ts in by|te)..MOV|
|000003c0| 45 2e 57 09 44 34 2c 44 | 30 09 09 09 3b 67 65 74 |E.W.D4,D|0...;get|
|000003d0| 20 63 6f 70 79 20 6f 66 | 20 69 6e 64 65 78 0d 62 | copy of| index.b|
|000003e0| 72 6c 70 3a 09 4c 53 4c | 2e 57 09 23 31 2c 44 31 |rlp:.LSL|.W.#1,D1|
|000003f0| 09 09 09 3b 73 68 69 66 | 74 20 69 6e 64 65 78 20 |...;shif|t index |
|00000400| 6c 65 66 74 20 6f 6e 65 | 0d 09 42 54 53 54 2e 4c |left one|..BTST.L|
|00000410| 09 23 30 2c 44 30 09 09 | 09 3b 74 65 73 74 20 6c |.#0,D0..|.;test l|
|00000420| 6f 77 20 62 69 74 20 6f | 66 20 69 6e 64 65 78 0d |ow bit o|f index.|
|00000430| 09 42 45 51 2e 53 09 62 | 69 74 6e 73 09 09 09 3b |.BEQ.S.b|itns...;|
|00000440| 6e 6f 74 20 73 65 74 0d | 09 41 44 44 51 2e 57 09 |not set.|.ADDQ.W.|
|00000450| 23 31 2c 44 31 09 09 09 | 3b 70 75 74 20 62 69 74 |#1,D1...|;put bit|
|00000460| 20 69 6e 74 6f 20 72 65 | 73 75 6c 74 0d 62 69 74 | into re|sult.bit|
|00000470| 6e 73 3a 09 4c 53 52 2e | 57 09 23 31 2c 44 30 09 |ns:.LSR.|W.#1,D0.|
|00000480| 09 09 3b 73 68 69 66 74 | 20 69 6e 64 65 78 20 72 |..;shift| index r|
|00000490| 69 67 68 74 20 6f 6e 65 | 0d 09 44 42 46 09 44 32 |ight one|..DBF.D2|
|000004a0| 2c 62 72 6c 70 0d 09 4d | 4f 56 45 2e 42 09 44 31 |,brlp..M|OVE.B.D1|
|000004b0| 2c 28 41 30 29 2b 09 09 | 3b 73 74 6f 72 65 20 6e |,(A0)+..|;store n|
|000004c0| 65 77 20 69 6e 64 65 78 | 0d 09 41 44 44 51 2e 57 |ew index|..ADDQ.W|
|000004d0| 09 23 31 2c 44 34 09 09 | 09 3b 62 75 6d 70 20 69 |.#1,D4..|.;bump i|
|000004e0| 6e 64 65 78 0d 09 44 42 | 46 09 44 33 2c 73 75 74 |ndex..DB|F.D3,sut|
|000004f0| 72 6c 70 0d 0d 3b 20 49 | 6e 69 74 20 6f 6c 64 56 |rlp..; I|nit oldV|
|00000500| 61 6c 20 41 72 72 61 79 | 20 74 6f 20 5a 65 72 6f |al Array| to Zero|
|00000510| 65 73 0d 09 4c 45 41 09 | 6f 6c 64 56 61 6c 28 41 |es..LEA.|oldVal(A|
|00000520| 35 29 2c 41 30 0d 09 4d | 4f 56 45 2e 57 09 23 35 |5),A0..M|OVE.W.#5|
|00000530| 31 31 2c 44 30 0d 69 6e | 69 74 4f 56 09 43 4c 52 |11,D0.in|itOV.CLR|
|00000540| 2e 57 09 28 41 30 29 2b | 0d 09 44 42 46 09 44 30 |.W.(A0)+|..DBF.D0|
|00000550| 2c 69 6e 69 74 4f 56 0d | 0d 3b 20 53 65 74 75 70 |,initOV.|.; Setup|
|00000560| 20 53 63 63 0d 09 4d 4f | 56 45 4d 2e 4c 09 53 63 | Scc..MO|VEM.L.Sc|
|00000570| 63 52 64 2c 41 30 2d 41 | 31 09 09 3b 67 65 74 20 |cRd,A0-A|1..;get |
|00000580| 74 68 65 20 62 61 73 65 | 20 61 64 64 72 65 73 73 |the base| address|
|00000590| 65 73 20 66 6f 72 20 53 | 63 63 0d 09 4d 4f 56 45 |es for S|cc..MOVE|
|000005a0| 51 09 23 32 2c 44 30 09 | 09 09 3b 66 75 64 67 65 |Q.#2,D0.|..;fudge|
|000005b0| 20 66 6f 72 20 50 6f 72 | 74 20 41 0d 09 41 44 44 | for Por|t A..ADD|
|000005c0| 41 2e 57 09 44 30 2c 41 | 30 09 09 09 3b 53 63 63 |A.W.D0,A|0...;Scc|
|000005d0| 20 52 65 61 64 20 41 64 | 64 72 0d 09 41 44 44 41 | Read Ad|dr..ADDA|
|000005e0| 2e 57 09 44 30 2c 41 31 | 09 09 09 3b 53 63 63 20 |.W.D0,A1|...;Scc |
|000005f0| 57 72 69 74 65 20 41 64 | 64 72 0d 3b 20 64 69 73 |Write Ad|dr.; dis|
|00000600| 61 62 6c 65 20 69 6e 74 | 65 72 72 75 70 74 73 0d |able int|errupts.|
|00000610| 09 4d 4f 56 45 09 53 52 | 2c 2d 28 53 50 29 09 09 |.MOVE.SR|,-(SP)..|
|00000620| 3b 73 65 74 75 70 20 66 | 6f 72 20 52 54 45 0d 09 |;setup f|or RTE..|
|00000630| 4f 52 49 09 23 24 33 30 | 30 2c 53 52 09 09 3b 44 |ORI.#$30|0,SR..;D|
|00000640| 69 73 61 62 6c 65 20 49 | 6e 74 65 72 72 75 70 74 |isable I|nterrupt|
|00000650| 73 0d 3b 20 57 52 20 39 | 0d 09 4d 4f 56 45 2e 42 |s.; WR 9|..MOVE.B|
|00000660| 09 28 41 30 29 2c 44 30 | 09 09 09 3b 61 73 73 75 |.(A0),D0|...;assu|
|00000670| 72 65 20 57 52 30 20 6e | 65 78 74 0d 09 4d 4f 56 |re WR0 n|ext..MOV|
|00000680| 45 2e 4c 09 28 53 50 29 | 2c 28 53 50 29 09 09 3b |E.L.(SP)|,(SP)..;|
|00000690| 28 64 65 6c 61 79 29 0d | 09 4d 4f 56 45 2e 42 09 |(delay).|.MOVE.B.|
|000006a0| 23 39 2c 28 41 31 29 09 | 09 09 3b 57 52 20 39 0d |#9,(A1).|..;WR 9.|
|000006b0| 09 4d 4f 56 45 2e 4c 09 | 28 53 50 29 2c 28 53 50 |.MOVE.L.|(SP),(SP|
|000006c0| 29 09 09 3b 28 64 65 6c | 61 79 29 0d 09 4d 4f 56 |)..;(del|ay)..MOV|
|000006d0| 45 2e 42 09 23 24 30 32 | 2c 28 41 31 29 09 09 3b |E.B.#$02|,(A1)..;|
|000006e0| 4e 56 20 6f 6e 6c 79 0d | 3b 20 57 52 20 34 0d 09 |NV only.|; WR 4..|
|000006f0| 4d 4f 56 45 2e 4c 09 28 | 53 50 29 2c 28 53 50 29 |MOVE.L.(|SP),(SP)|
|00000700| 09 09 3b 28 64 65 6c 61 | 79 29 0d 09 4d 4f 56 45 |..;(dela|y)..MOVE|
|00000710| 2e 42 09 23 34 2c 28 41 | 31 29 09 09 09 3b 57 52 |.B.#4,(A|1)...;WR|
|00000720| 20 34 0d 09 4d 4f 56 45 | 2e 4c 09 28 53 50 29 2c | 4..MOVE|.L.(SP),|
|00000730| 28 53 50 29 09 09 3b 28 | 64 65 6c 61 79 29 0d 09 |(SP)..;(|delay)..|
|00000740| 4d 4f 56 45 2e 42 09 23 | 24 30 43 2c 28 41 31 29 |MOVE.B.#|$0C,(A1)|
|00000750| 09 09 3b 32 20 73 74 6f | 70 20 62 69 74 73 2c 20 |..;2 sto|p bits, |
|00000760| 41 73 79 6e 63 68 20 4d | 6f 64 65 0d 3b 20 57 52 |Asynch M|ode.; WR|
|00000770| 20 31 0d 09 4d 4f 56 45 | 2e 4c 09 28 53 50 29 2c | 1..MOVE|.L.(SP),|
|00000780| 28 53 50 29 09 09 3b 28 | 64 65 6c 61 79 29 0d 09 |(SP)..;(|delay)..|
|00000790| 4d 4f 56 45 2e 42 09 23 | 31 2c 28 41 31 29 09 09 |MOVE.B.#|1,(A1)..|
|000007a0| 09 3b 57 52 20 31 0d 09 | 4d 4f 56 45 2e 4c 09 28 |.;WR 1..|MOVE.L.(|
|000007b0| 53 50 29 2c 28 53 50 29 | 09 09 3b 28 64 65 6c 61 |SP),(SP)|..;(dela|
|000007c0| 79 29 0d 09 4d 4f 56 45 | 2e 42 09 23 24 30 31 2c |y)..MOVE|.B.#$01,|
|000007d0| 28 41 31 29 09 09 3b 4e | 6f 20 52 78 2f 54 78 20 |(A1)..;N|o Rx/Tx |
|000007e0| 49 6e 74 2c 20 45 78 74 | 20 49 6e 74 20 4f 4e 20 |Int, Ext| Int ON |
|000007f0| 28 4d 6f 75 73 65 29 0d | 3b 20 57 52 20 33 0d 09 |(Mouse).|; WR 3..|
|00000800| 4d 4f 56 45 2e 4c 09 28 | 53 50 29 2c 28 53 50 29 |MOVE.L.(|SP),(SP)|
|00000810| 09 09 3b 28 64 65 6c 61 | 79 29 0d 09 4d 4f 56 45 |..;(dela|y)..MOVE|
|00000820| 2e 42 09 23 33 2c 28 41 | 31 29 09 09 09 3b 57 52 |.B.#3,(A|1)...;WR|
|00000830| 20 33 0d 09 4d 4f 56 45 | 2e 4c 09 28 53 50 29 2c | 3..MOVE|.L.(SP),|
|00000840| 28 53 50 29 09 09 3b 28 | 64 65 6c 61 79 29 0d 09 |(SP)..;(|delay)..|
|00000850| 4d 4f 56 45 2e 42 09 23 | 24 43 31 2c 28 41 31 29 |MOVE.B.#|$C1,(A1)|
|00000860| 09 09 3b 38 20 62 69 74 | 73 20 70 65 72 20 42 79 |..;8 bit|s per By|
|00000870| 74 65 2c 20 52 78 20 45 | 6e 61 62 6c 65 0d 3b 20 |te, Rx E|nable.; |
|00000880| 57 52 20 35 0d 09 4d 4f | 56 45 2e 4c 09 28 53 50 |WR 5..MO|VE.L.(SP|
|00000890| 29 2c 28 53 50 29 09 09 | 3b 28 64 65 6c 61 79 29 |),(SP)..|;(delay)|
|000008a0| 0d 09 4d 4f 56 45 2e 42 | 09 23 35 2c 28 41 31 29 |..MOVE.B|.#5,(A1)|
|000008b0| 09 09 09 3b 57 52 20 35 | 0d 09 4d 4f 56 45 2e 4c |...;WR 5|..MOVE.L|
|000008c0| 09 28 53 50 29 2c 28 53 | 50 29 09 09 3b 28 64 65 |.(SP),(S|P)..;(de|
|000008d0| 6c 61 79 29 0d 09 4d 4f | 56 45 2e 42 09 23 24 37 |lay)..MO|VE.B.#$7|
|000008e0| 41 2c 28 41 31 29 09 09 | 3b 38 20 62 69 74 73 2f |A,(A1)..|;8 bits/|
|000008f0| 63 68 61 72 2c 20 73 65 | 6e 64 20 62 72 65 61 6b |char, se|nd break|
|00000900| 2c 20 54 78 20 65 6e 61 | 62 6c 65 0d 3b 20 57 52 |, Tx ena|ble.; WR|
|00000910| 20 31 31 0d 09 4d 4f 56 | 45 2e 4c 09 28 53 50 29 | 11..MOV|E.L.(SP)|
|00000920| 2c 28 53 50 29 09 09 3b | 28 64 65 6c 61 79 29 0d |,(SP)..;|(delay).|
|00000930| 09 4d 4f 56 45 2e 42 09 | 23 31 31 2c 28 41 31 29 |.MOVE.B.|#11,(A1)|
|00000940| 09 09 3b 57 52 20 31 31 | 0d 09 4d 4f 56 45 2e 4c |..;WR 11|..MOVE.L|
|00000950| 09 28 53 50 29 2c 28 53 | 50 29 09 09 3b 28 64 65 |.(SP),(S|P)..;(de|
|00000960| 6c 61 79 29 0d 09 4d 4f | 56 45 2e 42 09 23 24 33 |lay)..MO|VE.B.#$3|
|00000970| 30 2c 28 41 31 29 09 09 | 3b 54 52 78 43 2d 42 61 |0,(A1)..|;TRxC-Ba|
|00000980| 72 20 69 73 20 52 63 76 | 20 43 6c 6f 63 6b 20 28 |r is Rcv| Clock (|
|00000990| 45 78 74 65 72 6e 61 6c | 29 0d 09 09 09 09 09 3b |External|)......;|
|000009a0| 42 52 20 47 65 6e 65 72 | 61 74 6f 72 20 69 73 20 |BR Gener|ator is |
|000009b0| 58 6d 74 20 43 6c 6f 63 | 6b 0d 3b 20 57 52 20 31 |Xmt Cloc|k.; WR 1|
|000009c0| 34 0d 09 4d 4f 56 45 2e | 4c 09 28 53 50 29 2c 28 |4..MOVE.|L.(SP),(|
|000009d0| 53 50 29 09 09 3b 28 64 | 65 6c 61 79 29 0d 09 4d |SP)..;(d|elay)..M|
|000009e0| 4f 56 45 2e 42 09 23 31 | 34 2c 28 41 31 29 09 09 |OVE.B.#1|4,(A1)..|
|000009f0| 3b 57 52 20 31 34 0d 09 | 4d 4f 56 45 2e 4c 09 28 |;WR 14..|MOVE.L.(|
|00000a00| 53 50 29 2c 28 53 50 29 | 09 09 3b 28 64 65 6c 61 |SP),(SP)|..;(dela|
|00000a10| 79 29 0d 09 4d 4f 56 45 | 2e 42 09 23 24 30 31 2c |y)..MOVE|.B.#$01,|
|00000a20| 28 41 31 29 09 09 3b 42 | 52 20 45 6e 61 62 6c 65 |(A1)..;B|R Enable|
|00000a30| 2c 20 6e 6f 20 77 65 69 | 72 64 20 6d 6f 64 65 73 |, no wei|rd modes|
|00000a40| 0d 3b 20 57 52 20 31 35 | 0d 09 4d 4f 56 45 2e 4c |.; WR 15|..MOVE.L|
|00000a50| 09 28 53 50 29 2c 28 53 | 50 29 09 09 3b 28 64 65 |.(SP),(S|P)..;(de|
|00000a60| 6c 61 79 29 0d 09 4d 4f | 56 45 2e 42 09 23 31 35 |lay)..MO|VE.B.#15|
|00000a70| 2c 28 41 31 29 09 09 3b | 57 52 20 31 35 0d 09 4d |,(A1)..;|WR 15..M|
|00000a80| 4f 56 45 2e 4c 09 28 53 | 50 29 2c 28 53 50 29 09 |OVE.L.(S|P),(SP).|
|00000a90| 09 3b 28 64 65 6c 61 79 | 29 0d 09 4d 4f 56 45 2e |.;(delay|)..MOVE.|
|00000aa0| 42 09 23 24 30 38 2c 28 | 41 31 29 09 09 3b 49 6e |B.#$08,(|A1)..;In|
|00000ab0| 74 65 72 72 75 70 74 20 | 6f 6e 20 43 44 20 43 68 |terrupt |on CD Ch|
|00000ac0| 61 6e 67 65 73 20 28 4d | 6f 75 73 65 29 0d 3b 20 |anges (M|ouse).; |
|00000ad0| 57 52 20 30 0d 09 4d 4f | 56 45 2e 4c 09 28 53 50 |WR 0..MO|VE.L.(SP|
|00000ae0| 29 2c 28 53 50 29 0d 09 | 4d 4f 56 45 2e 42 09 23 |),(SP)..|MOVE.B.#|
|00000af0| 24 34 30 2c 28 41 31 29 | 09 09 3b 52 65 73 65 74 |$40,(A1)|..;Reset|
|00000b00| 20 52 78 20 43 52 43 20 | 74 6f 20 57 52 20 30 0d | Rx CRC |to WR 0.|
|00000b10| 09 4d 4f 56 45 2e 4c 09 | 28 53 50 29 2c 28 53 50 |.MOVE.L.|(SP),(SP|
|00000b20| 29 0d 09 4d 4f 56 45 2e | 42 09 23 24 34 30 2c 28 |)..MOVE.|B.#$40,(|
|00000b30| 41 31 29 09 09 3b 52 65 | 73 65 74 20 52 78 20 43 |A1)..;Re|set Rx C|
|00000b40| 52 43 20 74 6f 20 57 52 | 20 30 0d 3b 20 57 52 20 |RC to WR| 0.; WR |
|00000b50| 39 0d 09 4d 4f 56 45 2e | 4c 09 28 53 50 29 2c 28 |9..MOVE.|L.(SP),(|
|00000b60| 53 50 29 09 09 3b 28 64 | 65 6c 61 79 29 0d 09 4d |SP)..;(d|elay)..M|
|00000b70| 4f 56 45 2e 42 09 23 39 | 2c 28 41 31 29 09 09 09 |OVE.B.#9|,(A1)...|
|00000b80| 3b 57 52 20 39 0d 09 4d | 4f 56 45 2e 4c 09 28 53 |;WR 9..M|OVE.L.(S|
|00000b90| 50 29 2c 28 53 50 29 09 | 09 3b 28 64 65 6c 61 79 |P),(SP).|.;(delay|
|00000ba0| 29 0d 09 4d 4f 56 45 2e | 42 09 23 24 30 41 2c 28 |)..MOVE.|B.#$0A,(|
|00000bb0| 41 31 29 09 09 3b 4d 49 | 45 20 61 6e 64 20 4e 56 |A1)..;MI|E and NV|
|00000bc0| 0d 0d 3b 20 74 75 72 6e | 20 6f 66 66 20 74 68 65 |..; turn| off the|
|00000bd0| 20 6d 6f 74 6f 72 0d 09 | 4c 45 41 09 4d 6f 74 6f | motor..|LEA.Moto|
|00000be0| 72 4f 66 66 2c 41 32 09 | 09 3b 61 64 64 72 65 73 |rOff,A2.|.;addres|
|00000bf0| 73 20 74 68 65 20 6d 6f | 74 6f 72 20 6f 66 66 20 |s the mo|tor off |
|00000c00| 62 61 73 65 0d 09 54 53 | 54 2e 42 09 28 41 32 29 |base..TS|T.B.(A2)|
|00000c10| 09 09 09 3b 64 6f 20 61 | 20 66 65 74 63 68 0d 0d |...;do a| fetch..|
|00000c20| 3b 20 69 6e 69 74 20 74 | 68 65 20 73 6f 75 6e 64 |; init t|he sound|
|00000c30| 20 6f 75 74 70 75 74 20 | 62 75 66 66 65 72 20 74 | output |buffer t|
|00000c40| 6f 20 46 46 27 73 20 66 | 6f 72 20 73 6d 61 6c 6c |o FF's f|or small|
|00000c50| 65 73 74 20 63 6c 69 70 | 0d 09 4d 4f 56 45 2e 4c |est clip|..MOVE.L|
|00000c60| 09 53 6f 75 6e 64 42 61 | 73 65 2c 41 32 09 09 3b |.SoundBa|se,A2..;|
|00000c70| 69 6e 69 74 20 74 68 65 | 20 73 6f 75 6e 64 20 62 |init the| sound b|
|00000c80| 75 66 66 65 72 20 61 64 | 64 72 0d 09 4d 4f 56 45 |uffer ad|dr..MOVE|
|00000c90| 2e 57 09 23 53 6e 64 42 | 75 66 57 4c 65 6e 2d 31 |.W.#SndB|ufWLen-1|
|00000ca0| 2c 44 32 09 3b 73 69 7a | 65 20 6f 66 20 73 6f 75 |,D2.;siz|e of sou|
|00000cb0| 6e 64 20 62 75 66 66 65 | 72 0d 40 31 09 4d 4f 56 |nd buffe|r.@1.MOV|
|00000cc0| 45 2e 42 09 23 24 46 46 | 2c 28 41 32 29 09 09 3b |E.B.#$FF|,(A2)..;|
|00000cd0| 73 65 74 20 74 6f 20 32 | 35 35 0d 09 41 44 44 51 |set to 2|55..ADDQ|
|00000ce0| 2e 4c 09 23 32 2c 41 32 | 09 09 09 3b 73 6b 69 70 |.L.#2,A2|...;skip|
|00000cf0| 20 74 77 6f 20 62 79 74 | 65 73 0d 09 44 42 46 09 | two byt|es..DBF.|
|00000d00| 44 32 2c 40 31 0d 0d 3b | 20 77 61 69 74 20 66 6f |D2,@1..;| wait fo|
|00000d10| 72 20 63 6c 6f 63 6b 20 | 66 72 6f 6d 20 62 6f 78 |r clock |from box|
|00000d20| 20 74 6f 20 73 74 61 72 | 74 0d 09 4d 4f 56 45 2e | to star|t..MOVE.|
|00000d30| 42 09 28 41 30 29 2c 44 | 30 09 09 09 3b 61 73 73 |B.(A0),D|0...;ass|
|00000d40| 75 72 65 20 57 52 20 30 | 20 6e 65 78 74 0d 09 4d |ure WR 0| next..M|
|00000d50| 4f 56 45 51 09 23 31 30 | 2c 44 31 09 09 09 3b 66 |OVEQ.#10|,D1...;f|
|00000d60| 6c 75 73 68 20 66 69 72 | 73 74 20 31 30 20 73 61 |lush fir|st 10 sa|
|00000d70| 6d 70 6c 65 73 0d 09 4d | 4f 56 45 2e 4c 09 28 53 |mples..M|OVE.L.(S|
|00000d80| 50 29 2c 28 53 50 29 09 | 09 3b 28 64 65 6c 61 79 |P),(SP).|.;(delay|
|00000d90| 29 0d 3b 20 6c 6f 6f 70 | 20 75 6e 74 69 6c 20 61 |).; loop| until a|
|00000da0| 74 20 6c 65 61 73 74 20 | 6f 6e 65 20 63 68 61 72 |t least |one char|
|00000db0| 61 63 74 65 72 20 69 73 | 20 74 68 65 72 65 0d 40 |acter is| there.@|
|00000dc0| 32 09 42 54 53 54 2e 42 | 09 23 30 2c 28 41 30 29 |2.BTST.B|.#0,(A0)|
|00000dd0| 09 09 09 3b 74 65 73 74 | 20 52 52 20 30 20 66 6f |...;test| RR 0 fo|
|00000de0| 72 20 64 61 74 61 20 61 | 76 61 69 6c 61 62 6c 65 |r data a|vailable|
|00000df0| 0d 09 42 45 51 2e 53 09 | 40 32 09 09 09 3b 69 6e |..BEQ.S.|@2...;in|
|00000e00| 6e 65 72 20 6c 6f 6f 70 | 20 75 6e 74 69 6c 20 61 |ner loop| until a|
|00000e10| 20 63 68 61 72 20 69 73 | 20 74 68 65 72 65 0d 09 | char is| there..|
|00000e20| 4d 4f 56 45 2e 42 09 34 | 28 41 30 29 2c 44 30 09 |MOVE.B.4|(A0),D0.|
|00000e30| 09 3b 72 65 63 65 69 76 | 65 20 74 68 65 20 63 68 |.;receiv|e the ch|
|00000e40| 61 72 61 63 74 65 72 0d | 09 4d 4f 56 45 4d 2e 4c |aracter.|.MOVEM.L|
|00000e50| 09 44 30 2d 44 37 2c 2d | 28 53 50 29 09 09 3b 6b |.D0-D7,-|(SP)..;k|
|00000e60| 69 6c 6c 20 74 69 6d 65 | 0d 09 4d 4f 56 45 4d 2e |ill time|..MOVEM.|
|00000e70| 4c 09 28 53 50 29 2b 2c | 44 30 2d 44 37 0d 09 44 |L.(SP)+,|D0-D7..D|
|00000e80| 42 46 09 44 31 2c 40 32 | 09 09 09 3b 6f 75 74 65 |BF.D1,@2|...;oute|
|00000e90| 72 20 6c 6f 6f 70 20 6f | 6e 20 63 68 61 72 61 63 |r loop o|n charac|
|00000ea0| 74 65 72 73 20 72 65 61 | 64 0d 09 0d 3b 20 73 65 |ters rea|d...; se|
|00000eb0| 74 20 53 63 72 65 65 6e | 20 74 6f 20 42 6c 61 63 |t Screen| to Blac|
|00000ec0| 6b 0d 09 4d 4f 56 45 41 | 2e 4c 09 53 63 72 6e 42 |k..MOVEA|.L.ScrnB|
|00000ed0| 61 73 65 2c 41 32 09 09 | 3b 20 53 43 52 45 45 4e |ase,A2..|; SCREEN|
|00000ee0| 20 41 44 44 52 45 53 53 | 0d 09 4d 4f 56 45 2e 57 | ADDRESS|..MOVE.W|
|00000ef0| 09 53 63 72 65 65 6e 52 | 6f 77 2c 44 30 09 09 3b |.ScreenR|ow,D0..;|
|00000f00| 67 65 74 20 62 79 74 65 | 20 77 69 64 74 68 20 6f |get byte| width o|
|00000f10| 66 20 73 63 72 65 65 6e | 0d 09 4c 53 52 2e 57 09 |f screen|..LSR.W.|
|00000f20| 23 32 2c 44 30 09 09 09 | 3b 64 69 76 69 64 65 64 |#2,D0...|;divided|
|00000f30| 20 62 79 20 34 0d 09 4d | 55 4c 55 09 23 4d 61 78 | by 4..M|ULU.#Max|
|00000f40| 59 2c 44 30 0d 09 53 55 | 42 51 2e 57 09 23 31 2c |Y,D0..SU|BQ.W.#1,|
|00000f50| 44 30 09 09 09 3b 6c 6f | 6f 70 20 63 6f 75 6e 74 |D0...;lo|op count|
|00000f60| 0d 40 33 09 4d 4f 56 45 | 2e 4c 09 23 24 46 46 46 |.@3.MOVE|.L.#$FFF|
|00000f70| 46 46 46 46 46 2c 28 41 | 32 29 2b 09 3b 73 65 74 |FFFFF,(A|2)+.;set|
|00000f80| 20 74 6f 20 6f 6e 65 73 | 20 34 20 62 79 74 65 73 | to ones| 4 bytes|
|00000f90| 0d 09 44 42 46 09 44 30 | 2c 40 33 0d 0d 3b 20 63 |..DBF.D0|,@3..; c|
|00000fa0| 6f 6d 70 75 74 65 20 74 | 68 65 20 70 6c 61 63 65 |ompute t|he place|
|00000fb0| 20 6f 6e 20 73 63 72 65 | 65 6e 20 74 6f 20 64 72 | on scre|en to dr|
|00000fc0| 61 77 0d 09 4d 4f 56 45 | 2e 57 09 23 6d 79 52 6f |aw..MOVE|.W.#myRo|
|00000fd0| 77 2c 44 30 09 09 3b 20 | 4c 4f 41 44 20 54 4f 50 |w,D0..; |LOAD TOP|
|00000fe0| 20 53 43 41 4e 20 4f 46 | 20 53 43 4f 50 45 0d 09 | SCAN OF| SCOPE..|
|00000ff0| 4d 55 4c 55 09 53 63 72 | 65 65 6e 52 6f 77 2c 44 |MULU.Scr|eenRow,D|
|00001000| 30 09 09 3b 20 74 69 6d | 65 73 20 72 6f 77 20 6c |0..; tim|es row l|
|00001010| 65 6e 67 74 68 20 28 63 | 6c 65 61 6e 29 0d 09 4d |ength (c|lean)..M|
|00001020| 4f 56 45 41 2e 4c 09 53 | 63 72 6e 42 61 73 65 2c |OVEA.L.S|crnBase,|
|00001030| 41 33 09 09 3b 20 53 43 | 52 45 45 4e 20 41 44 44 |A3..; SC|REEN ADD|
|00001040| 52 45 53 53 0d 09 41 44 | 44 41 2e 57 09 44 30 2c |RESS..AD|DA.W.D0,|
|00001050| 41 33 09 09 09 3b 20 41 | 44 44 20 4f 4e 20 4f 46 |A3...; A|DD ON OF|
|00001060| 46 53 45 54 20 4f 46 20 | 53 43 41 4e 2e 2e 2e 0d |FSET OF |SCAN....|
|00001070| 0d 3b 20 6e 6f 77 20 64 | 72 61 77 20 77 68 69 74 |.; now d|raw whit|
|00001080| 65 20 6c 69 6e 65 73 20 | 61 62 6f 76 65 20 61 6e |e lines |above an|
|00001090| 64 20 62 65 6c 6f 77 20 | 27 73 63 6f 70 65 20 72 |d below |'scope r|
|000010a0| 65 67 69 6f 6e 0d 09 4d | 4f 56 45 41 2e 4c 09 41 |egion..M|OVEA.L.A|
|000010b0| 33 2c 41 32 0d 09 53 55 | 42 41 2e 57 09 53 63 72 |3,A2..SU|BA.W.Scr|
|000010c0| 65 65 6e 52 6f 77 2c 41 | 32 0d 09 4d 4f 56 45 2e |eenRow,A|2..MOVE.|
|000010d0| 57 09 53 63 72 65 65 6e | 52 6f 77 2c 44 30 0d 09 |W.Screen|Row,D0..|
|000010e0| 4c 53 52 2e 57 09 23 32 | 2c 44 30 0d 09 53 55 42 |LSR.W.#2|,D0..SUB|
|000010f0| 51 2e 57 09 23 31 2c 44 | 30 09 09 09 3b 6c 6f 6f |Q.W.#1,D|0...;loo|
|00001100| 70 20 63 6f 75 6e 74 0d | 40 34 09 43 4c 52 2e 4c |p count.|@4.CLR.L|
|00001110| 09 28 41 32 29 2b 0d 09 | 44 42 46 09 44 30 2c 40 |.(A2)+..|DBF.D0,@|
|00001120| 34 0d 09 4d 4f 56 45 2e | 57 09 23 32 35 37 2c 44 |4..MOVE.|W.#257,D|
|00001130| 30 0d 09 4d 55 4c 55 09 | 53 63 72 65 65 6e 52 6f |0..MULU.|ScreenRo|
|00001140| 77 2c 44 30 09 09 3b 20 | 74 69 6d 65 73 20 72 6f |w,D0..; |times ro|
|00001150| 77 20 6c 65 6e 67 74 68 | 20 28 63 6c 65 61 6e 29 |w length| (clean)|
|00001160| 0d 09 4d 4f 56 45 41 2e | 4c 09 41 33 2c 41 32 0d |..MOVEA.|L.A3,A2.|
|00001170| 09 41 44 44 41 2e 57 09 | 44 30 2c 41 32 09 0d 09 |.ADDA.W.|D0,A2...|
|00001180| 4d 4f 56 45 2e 57 09 53 | 63 72 65 65 6e 52 6f 77 |MOVE.W.S|creenRow|
|00001190| 2c 44 30 0d 09 4c 53 52 | 2e 57 09 23 32 2c 44 30 |,D0..LSR|.W.#2,D0|
|000011a0| 0d 09 53 55 42 51 2e 57 | 09 23 31 2c 44 30 09 09 |..SUBQ.W|.#1,D0..|
|000011b0| 09 3b 6c 6f 6f 70 20 63 | 6f 75 6e 74 0d 40 35 09 |.;loop c|ount.@5.|
|000011c0| 43 4c 52 2e 4c 09 28 41 | 32 29 2b 0d 09 44 42 46 |CLR.L.(A|2)+..DBF|
|000011d0| 09 44 30 2c 40 35 0d 09 | 0d 3b 20 74 75 72 6e 20 |.D0,@5..|.; turn |
|000011e0| 6f 6e 20 74 68 65 20 73 | 6f 75 6e 64 0d 09 4d 4f |on the s|ound..MO|
|000011f0| 56 45 2e 4c 09 56 49 41 | 2c 41 32 09 09 09 3b 67 |VE.L.VIA|,A2...;g|
|00001200| 65 74 20 56 49 41 20 64 | 65 76 69 63 65 20 61 64 |et VIA d|evice ad|
|00001210| 64 72 65 73 73 0d 09 42 | 43 4c 52 09 23 56 53 6e |dress..B|CLR.#VSn|
|00001220| 64 45 6e 62 2c 28 41 32 | 29 09 09 3b 63 6c 65 61 |dEnb,(A2|)..;clea|
|00001230| 72 20 74 68 65 20 73 6f | 75 6e 64 20 64 69 73 61 |r the so|und disa|
|00001240| 62 6c 65 20 62 69 74 0d | 0d 3b 20 72 65 63 65 69 |ble bit.|.; recei|
|00001250| 76 65 20 63 68 61 72 61 | 63 74 65 72 73 20 61 6e |ve chara|cters an|
|00001260| 64 20 73 74 75 66 66 20 | 74 68 65 6d 20 69 6e 74 |d stuff |them int|
|00001270| 6f 20 74 68 65 20 73 6f | 75 6e 64 20 62 75 66 66 |o the so|und buff|
|00001280| 65 72 0d 09 4d 4f 56 45 | 2e 57 09 23 2d 74 72 69 |er..MOVE|.W.#-tri|
|00001290| 67 43 2c 44 33 09 09 3b | 74 72 69 67 67 65 72 20 |gC,D3..;|trigger |
|000012a0| 63 6f 75 6e 74 0d 09 4d | 4f 56 45 51 09 23 28 35 |count..M|OVEQ.#(5|
|000012b0| 31 32 2f 38 29 2d 31 2c | 44 36 09 09 3b 62 75 66 |12/8)-1,|D6..;buf|
|000012c0| 66 65 72 20 62 79 74 65 | 20 63 6f 75 6e 74 20 2d |fer byte| count -|
|000012d0| 20 31 0d 09 4d 4f 56 45 | 51 09 23 37 2c 44 37 09 | 1..MOVE|Q.#7,D7.|
|000012e0| 09 09 3b 63 6f 6d 70 6c | 65 6d 65 6e 74 20 62 69 |..;compl|ement bi|
|000012f0| 74 0d 09 4c 45 41 09 74 | 72 61 6e 73 54 61 62 28 |t..LEA.t|ransTab(|
|00001300| 41 35 29 2c 41 34 09 09 | 3b 6c 6f 61 64 20 74 72 |A5),A4..|;load tr|
|00001310| 61 6e 73 6c 61 74 65 20 | 74 61 62 6c 65 0d 09 4c |anslate |table..L|
|00001320| 45 41 09 6f 6c 64 56 61 | 6c 28 41 35 29 2c 41 36 |EA.oldVa|l(A5),A6|
|00001330| 09 09 3b 67 65 74 20 73 | 74 61 72 74 20 6f 66 20 |..;get s|tart of |
|00001340| 6f 6c 64 20 61 72 72 61 | 79 0d 0d 3b 20 27 6f 75 |old arra|y..; 'ou|
|00001350| 74 65 72 27 20 6c 6f 6f | 70 20 72 65 73 65 74 73 |ter' loo|p resets|
|00001360| 20 74 68 65 20 73 6f 75 | 6e 64 20 62 75 66 66 65 | the sou|nd buffe|
|00001370| 72 0d 72 69 6c 6f 6f 70 | 3a 09 4d 4f 56 45 2e 4c |r.riloop|:.MOVE.L|
|00001380| 09 53 6f 75 6e 64 42 61 | 73 65 2c 41 32 09 09 3b |.SoundBa|se,A2..;|
|00001390| 69 6e 69 74 20 74 68 65 | 20 73 6f 75 6e 64 20 62 |init the| sound b|
|000013a0| 75 66 66 65 72 20 61 64 | 64 72 0d 09 4d 4f 56 45 |uffer ad|dr..MOVE|
|000013b0| 2e 57 09 23 73 6e 64 42 | 75 66 57 4c 65 6e 2d 31 |.W.#sndB|ufWLen-1|
|000013c0| 2c 44 34 09 3b 77 6f 72 | 64 73 20 69 6e 20 73 6f |,D4.;wor|ds in so|
|000013d0| 75 6e 64 20 62 75 66 66 | 65 72 20 2d 20 31 20 66 |und buff|er - 1 f|
|000013e0| 6f 72 20 44 42 46 0d 0d | 3b 20 44 33 20 3d 20 30 |or DBF..|; D3 = 0|
|000013f0| 3a 20 69 66 20 73 63 6f | 70 69 6e 67 2c 20 3c 30 |: if sco|ping, <0|
|00001400| 3a 20 69 66 20 77 61 69 | 74 69 6e 67 20 66 6f 72 |: if wai|ting for|
|00001410| 20 54 42 20 63 6c 72 2c | 20 3e 30 3a 20 69 66 20 | TB clr,| >0: if |
|00001420| 77 61 69 74 69 6e 67 20 | 66 6f 72 20 54 42 20 73 |waiting |for TB s|
|00001430| 65 74 0d 3b 20 44 34 20 | 3d 20 73 6f 75 6e 64 20 |et.; D4 |= sound |
|00001440| 62 75 66 66 65 72 20 64 | 6f 77 6e 20 63 74 72 2c |buffer d|own ctr,|
|00001450| 0d 3b 20 44 36 20 3d 20 | 62 75 66 66 65 72 20 62 |.; D6 = |buffer b|
|00001460| 79 74 65 20 63 6f 75 6e | 74 20 2d 20 31 2c 20 44 |yte coun|t - 1, D|
|00001470| 37 20 3d 20 62 69 74 20 | 69 6e 20 62 79 74 65 20 |7 = bit |in byte |
|00001480| 28 63 6f 6d 70 6c 65 6d | 65 6e 74 29 0d 3b 20 41 |(complem|ent).; A|
|00001490| 30 20 3d 20 63 6f 6e 73 | 74 61 6e 74 20 53 63 63 |0 = cons|tant Scc|
|000014a0| 20 52 65 61 64 20 41 64 | 64 72 2c 20 41 31 20 3d | Read Ad|dr, A1 =|
|000014b0| 20 63 6f 6e 73 74 61 6e | 74 20 53 63 63 20 57 72 | constan|t Scc Wr|
|000014c0| 69 74 65 20 41 64 64 72 | 2c 0d 3b 20 41 32 20 3d |ite Addr|,.; A2 =|
|000014d0| 20 70 74 72 20 69 6e 74 | 6f 20 73 6f 75 6e 64 20 | ptr int|o sound |
|000014e0| 62 75 66 66 65 72 2c 20 | 41 33 20 3d 20 76 69 64 |buffer, |A3 = vid|
|000014f0| 65 6f 20 62 79 74 65 20 | 70 74 72 2c 0d 3b 20 41 |eo byte |ptr,.; A|
|00001500| 34 20 3d 20 63 6f 6e 73 | 74 61 6e 74 20 74 72 61 |4 = cons|tant tra|
|00001510| 6e 73 54 61 62 20 70 74 | 72 2c 20 41 35 20 3d 20 |nsTab pt|r, A5 = |
|00001520| 64 61 74 61 20 72 65 67 | 69 6f 6e 20 70 74 72 2c |data reg|ion ptr,|
|00001530| 0d 3b 20 41 36 20 3d 20 | 63 75 72 72 65 6e 74 20 |.; A6 = |current |
|00001540| 70 74 72 20 74 6f 20 6f | 6c 64 56 61 6c 20 61 72 |ptr to o|ldVal ar|
|00001550| 72 61 79 0d 6c 6f 6f 70 | 3a 09 4d 4f 56 45 51 09 |ray.loop|:.MOVEQ.|
|00001560| 23 32 35 2c 44 30 09 09 | 09 3b 63 6c 6f 63 6b 20 |#25,D0..|.;clock |
|00001570| 6f 66 66 20 74 69 6d 65 | 6f 75 74 0d 77 63 6c 6f |off time|out.wclo|
|00001580| 6f 70 3a 09 42 54 53 54 | 2e 42 09 23 30 2c 28 41 |op:.BTST|.B.#0,(A|
|00001590| 30 29 09 09 09 3b 74 65 | 73 74 20 52 52 20 30 20 |0)...;te|st RR 0 |
|000015a0| 66 6f 72 20 64 61 74 61 | 20 61 76 61 69 6c 61 62 |for data| availab|
|000015b0| 6c 65 0d 09 42 4e 45 2e | 53 09 67 6f 74 64 61 74 |le..BNE.|S.gotdat|
|000015c0| 61 09 09 09 3b 64 61 74 | 61 20 69 73 20 74 68 65 |a...;dat|a is the|
|000015d0| 72 65 21 0d 3b 20 6e 6f | 20 64 61 74 61 20 79 65 |re!.; no| data ye|
|000015e0| 74 2c 20 63 6f 75 6e 74 | 20 64 6f 77 6e 20 61 6e |t, count| down an|
|000015f0| 64 20 6c 6f 6f 70 0d 09 | 44 42 46 09 44 30 2c 77 |d loop..|DBF.D0,w|
|00001600| 63 6c 6f 6f 70 0d 3b 20 | 74 69 6d 65 20 6f 75 74 |cloop.; |time out|
|00001610| 3a 20 74 68 65 20 62 6f | 78 20 6d 75 73 74 20 68 |: the bo|x must h|
|00001620| 61 76 65 20 62 65 65 6e | 20 74 75 72 6e 65 64 20 |ave been| turned |
|00001630| 6f 66 66 0d 09 42 52 41 | 2e 53 09 64 6f 6e 65 4f |off..BRA|.S.doneO|
|00001640| 73 63 09 09 09 3b 65 78 | 69 74 0d 0d 3b 20 77 65 |sc...;ex|it..; we|
|00001650| 20 68 61 76 65 20 61 20 | 63 68 61 72 61 63 74 65 | have a |characte|
|00001660| 72 21 21 21 21 21 0d 3b | 20 61 73 73 75 6d 65 20 |r!!!!!.;| assume |
|00001670| 74 6f 70 20 62 79 74 65 | 20 6f 66 20 44 30 2e 57 |top byte| of D0.W|
|00001680| 20 69 73 20 7a 65 72 6f | 65 73 21 21 21 21 0d 67 | is zero|es!!!!.g|
|00001690| 6f 74 64 61 74 61 09 4d | 4f 56 45 2e 42 09 34 28 |otdata.M|OVE.B.4(|
|000016a0| 41 30 29 2c 44 30 09 09 | 3b 72 65 63 65 69 76 65 |A0),D0..|;receive|
|000016b0| 20 74 68 65 20 63 68 61 | 72 61 63 74 65 72 0d 09 | the cha|racter..|
|000016c0| 4d 4f 56 45 2e 42 09 30 | 28 41 34 2c 44 30 2e 57 |MOVE.B.0|(A4,D0.W|
|000016d0| 29 2c 44 30 09 09 3b 67 | 65 74 20 74 72 61 6e 73 |),D0..;g|et trans|
|000016e0| 6c 61 74 65 64 20 76 61 | 6c 75 65 0d 09 4d 4f 56 |lated va|lue..MOV|
|000016f0| 45 2e 42 09 44 30 2c 28 | 41 32 29 09 09 09 3b 70 |E.B.D0,(|A2)...;p|
|00001700| 75 74 20 74 72 61 6e 73 | 6c 61 74 65 64 20 62 79 |ut trans|lated by|
|00001710| 74 65 20 74 6f 20 73 6f | 75 6e 64 20 62 75 66 0d |te to so|und buf.|
|00001720| 09 41 44 44 51 2e 4c 09 | 23 32 2c 41 32 09 09 09 |.ADDQ.L.|#2,A2...|
|00001730| 3b 62 75 6d 70 20 73 6f | 75 6e 64 20 62 75 66 66 |;bump so|und buff|
|00001740| 65 72 20 70 74 72 0d 09 | 54 53 54 2e 57 09 44 33 |er ptr..|TST.W.D3|
|00001750| 09 09 09 3b 74 65 73 74 | 20 27 73 63 6f 70 65 20 |...;test| 'scope |
|00001760| 6d 6f 64 65 0d 09 42 45 | 51 2e 53 09 40 31 09 09 |mode..BE|Q.S.@1..|
|00001770| 09 3b 6e 6f 72 6d 61 6c | 20 6d 6f 64 65 0d 0d 3b |.;normal| mode..;|
|00001780| 20 77 61 69 74 69 6e 67 | 20 74 6f 20 74 72 69 67 | waiting| to trig|
|00001790| 67 65 72 20 27 73 63 6f | 70 65 0d 09 42 50 4c 2e |ger 'sco|pe..BPL.|
|000017a0| 53 09 40 32 09 09 09 3b | 62 72 61 6e 63 68 20 69 |S.@2...;|branch i|
|000017b0| 66 20 77 61 69 74 69 6e | 67 20 66 6f 72 20 3c 20 |f waitin|g for < |
|000017c0| 30 0d 3b 20 3c 30 3a 20 | 77 61 69 74 69 6e 67 20 |0.; <0: |waiting |
|000017d0| 66 6f 72 20 74 6f 70 20 | 62 69 74 20 63 6c 65 61 |for top |bit clea|
|000017e0| 72 0d 09 54 53 54 2e 42 | 09 44 30 09 09 09 3b 74 |r..TST.B|.D0...;t|
|000017f0| 65 73 74 20 74 6f 70 20 | 62 69 74 0d 09 42 50 4c |est top |bit..BPL|
|00001800| 2e 53 09 40 33 09 09 09 | 3b 62 72 61 6e 63 68 20 |.S.@3...|;branch |
|00001810| 69 66 20 63 6c 65 61 72 | 0d 09 41 44 44 51 2e 57 |if clear|..ADDQ.W|
|00001820| 09 23 31 2c 44 33 09 09 | 09 3b 63 6f 75 6e 74 20 |.#1,D3..|.;count |
|00001830| 64 6f 77 6e 0d 09 42 52 | 41 2e 53 09 64 6f 6c 6f |down..BR|A.S.dolo|
|00001840| 6f 70 0d 40 33 09 4d 4f | 56 45 2e 57 09 23 74 72 |op.@3.MO|VE.W.#tr|
|00001850| 69 67 43 2c 44 33 09 09 | 3b 77 61 69 74 20 66 6f |igC,D3..|;wait fo|
|00001860| 72 20 74 6f 70 20 62 69 | 74 20 73 65 74 0d 09 42 |r top bi|t set..B|
|00001870| 52 41 2e 53 09 64 6f 6c | 6f 6f 70 0d 3b 20 3e 30 |RA.S.dol|oop.; >0|
|00001880| 3a 20 77 61 69 74 69 6e | 67 20 66 6f 72 20 74 6f |: waitin|g for to|
|00001890| 70 20 62 69 74 20 73 65 | 74 0d 40 32 09 54 53 54 |p bit se|t.@2.TST|
|000018a0| 2e 42 09 44 30 09 09 09 | 3b 74 65 73 74 20 73 69 |.B.D0...|;test si|
|000018b0| 67 6e 20 6f 66 20 44 30 | 0d 09 42 4d 49 2e 53 09 |gn of D0|..BMI.S.|
|000018c0| 40 34 09 09 09 3b 62 72 | 61 6e 63 68 20 69 66 20 |@4...;br|anch if |
|000018d0| 73 65 74 0d 09 53 55 42 | 51 2e 57 09 23 31 2c 44 |set..SUB|Q.W.#1,D|
|000018e0| 33 09 09 09 3b 63 6f 75 | 6e 74 20 75 70 0d 09 42 |3...;cou|nt up..B|
|000018f0| 52 41 2e 53 09 64 6f 6c | 6f 6f 70 0d 40 34 09 4d |RA.S.dol|oop.@4.M|
|00001900| 4f 56 45 51 09 23 30 2c | 44 33 09 09 09 3b 77 65 |OVEQ.#0,|D3...;we|
|00001910| 27 76 65 20 74 72 69 67 | 67 65 72 65 64 0d 0d 3b |'ve trig|gered..;|
|00001920| 20 6f 75 74 70 75 74 20 | 6f 73 63 69 6c 6c 6f 73 | output |oscillos|
|00001930| 63 6f 70 65 2d 6c 69 6b | 65 20 64 69 73 70 6c 61 |cope-lik|e displa|
|00001940| 79 20 74 6f 20 73 63 72 | 65 65 6e 0d 40 31 09 4c |y to scr|een.@1.L|
|00001950| 53 4c 2e 57 09 23 36 2c | 44 30 09 09 09 3b 73 68 |SL.W.#6,|D0...;sh|
|00001960| 69 66 74 20 69 6e 74 6f | 20 76 65 72 74 69 63 61 |ift into| vertica|
|00001970| 6c 20 62 79 74 65 20 6f | 66 66 73 65 74 0d 09 4d |l byte o|ffset..M|
|00001980| 4f 56 45 2e 57 09 28 41 | 36 29 2c 44 31 09 09 09 |OVE.W.(A|6),D1...|
|00001990| 3b 67 65 74 20 6f 6c 64 | 20 76 61 6c 75 65 0d 09 |;get old| value..|
|000019a0| 4d 4f 56 45 2e 57 09 44 | 30 2c 28 41 36 29 2b 09 |MOVE.W.D|0,(A6)+.|
|000019b0| 09 3b 61 6e 64 20 72 65 | 70 6c 61 63 65 20 77 69 |.;and re|place wi|
|000019c0| 74 68 20 6e 65 77 20 6f | 6e 65 0d 09 42 53 45 54 |th new o|ne..BSET|
|000019d0| 09 44 37 2c 30 28 41 33 | 2c 44 31 2e 57 29 09 09 |.D7,0(A3|,D1.W)..|
|000019e0| 3b 63 6c 65 61 72 20 74 | 68 65 20 6f 6c 64 20 62 |;clear t|he old b|
|000019f0| 69 74 0d 09 42 43 4c 52 | 09 44 37 2c 30 28 41 33 |it..BCLR|.D7,0(A3|
|00001a00| 2c 44 30 2e 57 29 09 09 | 3b 73 65 74 20 74 68 65 |,D0.W)..|;set the|
|00001a10| 20 63 75 72 72 65 6e 74 | 20 62 69 74 0d 09 53 55 | current| bit..SU|
|00001a20| 42 51 2e 57 09 23 31 2c | 44 37 09 09 09 3b 64 65 |BQ.W.#1,|D7...;de|
|00001a30| 63 72 65 6d 65 6e 74 20 | 62 69 74 2c 20 4e 20 73 |crement |bit, N s|
|00001a40| 65 74 20 69 66 20 2d 31 | 0d 09 42 50 4c 2e 53 09 |et if -1|..BPL.S.|
|00001a50| 64 6f 6c 6f 6f 70 09 09 | 09 3b 6e 6f 2c 20 6c 6f |doloop..|.;no, lo|
|00001a60| 6f 70 20 71 75 69 63 6b | 0d 0d 09 4d 4f 56 45 51 |op quick|...MOVEQ|
|00001a70| 09 23 37 2c 44 37 09 09 | 09 3b 73 65 74 20 62 69 |.#7,D7..|.;set bi|
|00001a80| 74 20 74 6f 20 37 0d 09 | 41 44 44 51 2e 4c 09 23 |t to 7..|ADDQ.L.#|
|00001a90| 31 2c 41 33 09 09 09 3b | 62 75 6d 70 20 74 6f 20 |1,A3...;|bump to |
|00001aa0| 6e 65 78 74 20 68 6f 72 | 69 7a 6f 6e 74 61 6c 20 |next hor|izontal |
|00001ab0| 62 79 74 65 0d 09 44 42 | 46 09 44 36 2c 64 6f 6c |byte..DB|F.D6,dol|
|00001ac0| 6f 6f 70 0d 0d 3b 20 74 | 65 73 74 20 66 6f 72 20 |oop..; t|est for |
|00001ad0| 61 62 6f 72 74 65 64 20 | 62 79 20 6d 6f 75 73 65 |aborted |by mouse|
|00001ae0| 20 62 75 74 74 6f 6e 20 | 64 6f 77 6e 0d 09 4d 4f | button |down..MO|
|00001af0| 56 45 2e 4c 09 56 49 41 | 2c 41 33 09 09 09 3b 67 |VE.L.VIA|,A3...;g|
|00001b00| 65 74 20 56 49 41 20 64 | 65 76 69 63 65 20 61 64 |et VIA d|evice ad|
|00001b10| 64 72 65 73 73 0d 09 42 | 54 53 54 09 23 76 53 57 |dress..B|TST.#vSW|
|00001b20| 2c 28 41 33 29 0d 09 42 | 4e 45 2e 53 09 40 39 09 |,(A3)..B|NE.S.@9.|
|00001b30| 09 09 3b 20 6e 6f 2c 20 | 72 65 73 65 74 20 76 69 |..; no, |reset vi|
|00001b40| 64 65 6f 20 62 75 66 66 | 65 72 20 61 6e 64 20 6c |deo buff|er and l|
|00001b50| 6f 6f 70 0d 3b 20 41 62 | 6f 72 74 65 64 3a 3a 3a |oop.; Ab|orted:::|
|00001b60| 20 77 61 69 74 20 66 6f | 72 20 6d 6f 75 73 65 20 | wait fo|r mouse |
|00001b70| 74 6f 20 72 69 73 65 20 | 75 70 6f 6e 20 74 68 65 |to rise |upon the|
|00001b80| 20 61 62 6f 72 74 0d 40 | 38 09 42 54 53 54 09 23 | abort.@|8.BTST.#|
|00001b90| 76 53 57 2c 28 41 33 29 | 0d 09 42 45 51 2e 53 09 |vSW,(A3)|..BEQ.S.|
|00001ba0| 40 38 09 09 09 3b 20 6c | 6f 6f 70 20 75 6e 74 69 |@8...; l|oop unti|
|00001bb0| 6c 20 6d 6f 75 73 65 20 | 69 73 20 75 70 0d 09 42 |l mouse |is up..B|
|00001bc0| 52 41 2e 53 09 64 6f 6e | 65 4f 73 63 0d 0d 3b 20 |RA.S.don|eOsc..; |
|00001bd0| 72 65 73 65 74 20 76 69 | 64 65 6f 20 62 75 66 66 |reset vi|deo buff|
|00001be0| 65 72 0d 40 39 09 4d 4f | 56 45 2e 57 09 23 2d 74 |er.@9.MO|VE.W.#-t|
|00001bf0| 72 69 67 43 2c 44 33 09 | 09 3b 72 65 73 65 74 20 |rigC,D3.|.;reset |
|00001c00| 74 72 69 67 67 65 72 20 | 63 6f 75 6e 74 0d 09 4d |trigger |count..M|
|00001c10| 4f 56 45 51 09 23 28 35 | 31 32 2f 38 29 2d 31 2c |OVEQ.#(5|12/8)-1,|
|00001c20| 44 36 09 09 3b 62 75 66 | 66 65 72 20 62 79 74 65 |D6..;buf|fer byte|
|00001c30| 20 63 6f 75 6e 74 20 2d | 20 31 0d 3b 20 63 6f 6d | count -| 1.; com|
|00001c40| 70 75 74 65 20 74 68 65 | 20 70 6c 61 63 65 20 6f |pute the| place o|
|00001c50| 6e 20 73 63 72 65 65 6e | 20 74 6f 20 64 72 61 77 |n screen| to draw|
|00001c60| 0d 09 4d 4f 56 45 2e 57 | 09 23 6d 79 52 6f 77 2c |..MOVE.W|.#myRow,|
|00001c70| 44 30 09 09 3b 20 4c 4f | 41 44 20 54 4f 50 20 53 |D0..; LO|AD TOP S|
|00001c80| 43 41 4e 20 4f 46 20 53 | 43 4f 50 45 0d 09 4d 55 |CAN OF S|COPE..MU|
|00001c90| 4c 55 09 53 63 72 65 65 | 6e 52 6f 77 2c 44 30 09 |LU.Scree|nRow,D0.|
|00001ca0| 09 3b 20 74 69 6d 65 73 | 20 72 6f 77 20 6c 65 6e |.; times| row len|
|00001cb0| 67 74 68 20 28 63 6c 65 | 61 6e 29 0d 09 4d 4f 56 |gth (cle|an)..MOV|
|00001cc0| 45 41 2e 4c 09 53 63 72 | 6e 42 61 73 65 2c 41 33 |EA.L.Scr|nBase,A3|
|00001cd0| 09 09 3b 20 53 43 52 45 | 45 4e 20 41 44 44 52 45 |..; SCRE|EN ADDRE|
|00001ce0| 53 53 0d 09 41 44 44 41 | 2e 57 09 44 30 2c 41 33 |SS..ADDA|.W.D0,A3|
|00001cf0| 09 09 09 3b 20 41 44 44 | 20 4f 4e 20 4f 46 46 53 |...; ADD| ON OFFS|
|00001d00| 45 54 20 4f 46 20 53 43 | 41 4e 2e 2e 2e 0d 09 4c |ET OF SC|AN.....L|
|00001d10| 45 41 09 6f 6c 64 56 61 | 6c 28 41 35 29 2c 41 36 |EA.oldVa|l(A5),A6|
|00001d20| 09 09 3b 67 65 74 20 73 | 74 61 72 74 20 6f 66 20 |..;get s|tart of |
|00001d30| 6f 6c 64 20 61 72 72 61 | 79 0d 0d 0d 64 6f 6c 6f |old arra|y...dolo|
|00001d40| 6f 70 3a 09 44 42 46 09 | 44 34 2c 6c 6f 6f 70 09 |op:.DBF.|D4,loop.|
|00001d50| 09 09 3b 63 6f 75 6e 74 | 20 61 6e 64 20 74 65 73 |..;count| and tes|
|00001d60| 74 20 66 6f 72 20 53 6f | 75 6e 64 20 42 75 66 20 |t for So|und Buf |
|00001d70| 65 6d 70 74 79 0d 09 42 | 52 41 09 72 69 6c 6f 6f |empty..B|RA.riloo|
|00001d80| 70 09 09 09 3b 52 65 73 | 65 74 20 53 6f 75 6e 64 |p...;Res|et Sound|
|00001d90| 20 42 75 66 66 65 72 20 | 61 6e 64 20 4c 6f 6f 70 | Buffer |and Loop|
|00001da0| 0d 0d 3b 20 64 6f 6e 65 | 20 2d 20 63 6c 65 61 6e |..; done| - clean|
|00001db0| 20 74 68 69 6e 67 73 20 | 75 70 0d 3b 20 74 75 72 | things |up.; tur|
|00001dc0| 6e 20 69 6e 74 65 72 6e | 61 6c 20 63 6c 6f 63 6b |n intern|al clock|
|00001dd0| 20 6f 6e 2c 20 65 6e 61 | 62 6c 65 20 42 52 20 67 | on, ena|ble BR g|
|00001de0| 65 6e 65 72 61 74 6f 72 | 2c 20 0d 64 6f 6e 65 4f |enerator|, .doneO|
|00001df0| 73 63 3a 20 4d 4f 56 45 | 2e 42 09 28 41 30 29 2c |sc: MOVE|.B.(A0),|
|00001e00| 44 30 09 09 09 3b 61 73 | 73 75 72 65 20 57 52 30 |D0...;as|sure WR0|
|00001e10| 20 6e 65 78 74 0d 3b 20 | 57 52 20 35 0d 09 4d 4f | next.; |WR 5..MO|
|00001e20| 56 45 2e 4c 09 28 53 50 | 29 2c 28 53 50 29 09 09 |VE.L.(SP|),(SP)..|
|00001e30| 3b 28 64 65 6c 61 79 29 | 0d 09 4d 4f 56 45 2e 42 |;(delay)|..MOVE.B|
|00001e40| 09 23 35 2c 28 41 31 29 | 09 09 09 3b 57 52 20 35 |.#5,(A1)|...;WR 5|
|00001e50| 0d 09 4d 4f 56 45 2e 4c | 09 28 53 50 29 2c 28 53 |..MOVE.L|.(SP),(S|
|00001e60| 50 29 09 09 3b 28 64 65 | 6c 61 79 29 0d 09 4d 4f |P)..;(de|lay)..MO|
|00001e70| 56 45 2e 42 09 23 24 36 | 41 2c 28 41 31 29 09 09 |VE.B.#$6|A,(A1)..|
|00001e80| 3b 38 20 62 69 74 73 2f | 63 68 61 72 2c 20 54 78 |;8 bits/|char, Tx|
|00001e90| 20 65 6e 61 62 6c 65 0d | 3b 20 57 52 20 31 31 09 | enable.|; WR 11.|
|00001ea0| 0d 09 4d 4f 56 45 2e 4c | 09 28 53 50 29 2c 28 53 |..MOVE.L|.(SP),(S|
|00001eb0| 50 29 09 09 3b 28 64 65 | 6c 61 79 29 0d 09 4d 4f |P)..;(de|lay)..MO|
|00001ec0| 56 45 2e 42 09 23 31 31 | 2c 28 41 31 29 09 09 3b |VE.B.#11|,(A1)..;|
|00001ed0| 57 52 20 31 31 0d 09 4d | 4f 56 45 2e 4c 09 28 53 |WR 11..M|OVE.L.(S|
|00001ee0| 50 29 2c 28 53 50 29 09 | 09 3b 28 64 65 6c 61 79 |P),(SP).|.;(delay|
|00001ef0| 29 0d 09 4d 4f 56 45 2e | 42 09 23 24 35 30 2c 28 |)..MOVE.|B.#$50,(|
|00001f00| 41 31 29 09 09 3b 62 61 | 75 64 72 61 74 65 20 67 |A1)..;ba|udrate g|
|00001f10| 65 6e 65 72 61 74 6f 72 | 20 63 6c 6f 63 6b 69 6e |enerator| clockin|
|00001f20| 67 0d 3b 20 57 52 20 31 | 34 0d 09 4d 4f 56 45 2e |g.; WR 1|4..MOVE.|
|00001f30| 4c 09 28 53 50 29 2c 28 | 53 50 29 09 09 3b 28 64 |L.(SP),(|SP)..;(d|
|00001f40| 65 6c 61 79 29 0d 09 4d | 4f 56 45 2e 42 09 23 31 |elay)..M|OVE.B.#1|
|00001f50| 34 2c 28 41 31 29 09 09 | 3b 57 52 20 31 34 0d 09 |4,(A1)..|;WR 14..|
|00001f60| 4d 4f 56 45 2e 4c 09 28 | 53 50 29 2c 28 53 50 29 |MOVE.L.(|SP),(SP)|
|00001f70| 09 09 3b 28 64 65 6c 61 | 79 29 0d 09 4d 4f 56 45 |..;(dela|y)..MOVE|
|00001f80| 2e 42 09 23 24 30 31 2c | 28 41 31 29 09 09 3b 42 |.B.#$01,|(A1)..;B|
|00001f90| 52 20 45 6e 61 62 6c 65 | 2c 20 6e 6f 20 77 65 69 |R Enable|, no wei|
|00001fa0| 72 64 20 6d 6f 64 65 73 | 0d 0d 3b 20 74 75 72 6e |rd modes|..; turn|
|00001fb0| 20 6f 66 66 20 74 68 65 | 20 73 6f 75 6e 64 0d 09 | off the| sound..|
|00001fc0| 4d 4f 56 45 2e 4c 09 56 | 49 41 2c 41 32 09 09 09 |MOVE.L.V|IA,A2...|
|00001fd0| 3b 67 65 74 20 56 49 41 | 20 64 65 76 69 63 65 20 |;get VIA| device |
|00001fe0| 61 64 64 72 65 73 73 0d | 09 42 53 45 54 09 23 56 |address.|.BSET.#V|
|00001ff0| 53 6e 64 45 6e 62 2c 28 | 41 32 29 09 09 3b 73 65 |SndEnb,(|A2)..;se|
|00002000| 74 20 74 68 65 20 73 6f | 75 6e 64 20 64 69 73 61 |t the so|und disa|
|00002010| 62 6c 65 20 62 69 74 0d | 0d 3b 20 61 6c 6c 6f 77 |ble bit.|.; allow|
|00002020| 20 69 6e 74 65 72 72 75 | 70 74 73 0d 09 41 4e 44 | interru|pts..AND|
|00002030| 49 09 23 24 43 46 46 2c | 53 52 0d 0d 3b 20 72 65 |I.#$CFF,|SR..; re|
|00002040| 74 75 72 6e 20 74 6f 20 | 73 68 65 6c 6c 0d 09 44 |turn to |shell..D|
|00002050| 43 2e 57 09 24 41 39 46 | 34 09 3b 5f 45 78 69 74 |C.W.$A9F|4.;_Exit|
|00002060| 54 6f 53 68 65 6c 6c 0d | 09 0d 09 45 4e 44 00 00 |ToShell.|...END..|
|00002070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002080| 00 00 01 00 00 00 01 16 | 00 00 00 16 00 00 02 46 |........|.......F|
|00002090| 0d 0d 09 4d 4f 56 45 51 | 09 23 37 2c 44 37 09 09 |...MOVEQ|.#7,D7..|
|000020a0| 09 3b 73 65 74 20 62 69 | 74 20 74 6f 20 37 0d 09 |.;set bi|t to 7..|
|000020b0| 09 53 63 6f 70 65 2e 41 | 53 4d 02 00 00 00 54 45 |.Scope.A|SM....TE|
|000020c0| 58 54 45 44 49 54 01 00 | ff ff ff ff 00 00 00 00 |XTEDIT..|........|
|000020d0| 00 00 54 45 58 54 45 44 | 49 54 01 00 ff ff ff ff |..TEXTED|IT......|
|000020e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020f0| 00 00 99 1e 92 d6 00 00 | 1f ee 00 00 03 5c 66 65 |........|.....\fe|
|00002100| 72 0d 09 4d 4f 56 45 51 | 09 23 31 2c 44 33 09 09 |r..MOVEQ|.#1,D3..|
|00002110| 09 3b 72 65 73 79 6e 63 | 20 69 74 0d 09 4d 4f 56 |.;resync| it..MOV|
|00002120| 45 51 09 23 28 35 31 32 | 2f 38 29 2d 31 2c 44 36 |EQ.#(512|/8)-1,D6|
|00002130| 09 09 3b 62 75 66 66 65 | 72 20 62 79 74 65 20 63 |..;buffe|r byte c|
|00002140| 6f 75 6e 74 20 2d 20 31 | 0d 09 4c 45 41 09 6d 79 |ount - 1|..LEA.my|
|00002150| 56 69 64 65 6f 2c 41 33 | 09 09 3b 67 65 74 20 73 |Video,A3|..;get s|
|00002160| 74 61 72 74 20 6f 66 20 | 6d 79 20 76 69 64 65 6f |tart of |my video|
|00002170| 20 72 65 67 69 6f 6e 0d | 09 4c 45 41 09 6f 6c 64 | region.|.LEA.old|
|00002180| 00 00 00 0a 00 09 06 4d | 6f 6e 61 63 6f 72 00 00 |.......M|onacor..|
|00002190| 00 04 00 06 00 08 00 00 | 01 00 00 00 01 16 00 00 |........|........|
|000021a0| 00 16 00 00 02 46 00 00 | cc 1c 00 98 00 00 00 1c |.....F..|........|
|000021b0| 00 46 00 01 45 46 4e 54 | 00 00 00 12 45 54 41 42 |.F..EFNT|....ETAB|
|000021c0| 00 00 00 1e 03 eb 00 00 | 00 00 00 00 00 01 6a 32 |........|......j2|
|000021d0| 03 ec 01 00 00 00 00 0e | 00 01 6a 42 ff ff ff ff |........|..jB....|
|000021e0| ff ff ff ff 00 40 01 aa | 00 40 01 ac 00 40 01 ae |.....@..|.@...@..|
|000021f0| 00 40 01 b0 00 40 01 b2 | 00 40 01 b4 00 40 01 b6 |.@...@..|.@...@..|
|00002200| 00 40 01 b8 00 40 10 18 | 00 40 01 bc 00 40 01 be |.@...@..|.@...@..|
|00002210| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|00002220| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|00002230| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|00002240| 00 40 0b 94 00 40 0b bc | 00 40 0b ec 00 40 01 c0 |.@...@..|.@...@..|
|00002250| 00 40 01 c0 00 40 01 c0 | 00 40 01 c0 00 40 01 be |.@...@..|.@...@..|
|00002260| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|00002270| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|00002280| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|00002290| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|000022a0| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|000022b0| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|000022c0| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|000022d0| 00 40 01 be 00 40 01 be | 00 40 01 be ff ff ff ff |.@...@..|.@......|
|000022e0| ff ff ff ff 00 40 01 aa | 00 40 01 ac 00 40 01 ae |.....@..|.@...@..|
|000022f0| 00 40 01 b0 00 40 01 b2 | 00 40 01 b4 00 40 01 b6 |.@...@..|.@...@..|
|00002300| 00 40 01 b8 00 40 10 18 | 00 40 01 bc 00 40 01 be |.@...@..|.@...@..|
|00002310| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|00002320| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|00002330| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|00002340| 00 40 0b 94 00 40 0b bc | 00 40 0b ec 00 40 01 c0 |.@...@..|.@...@..|
|00002350| 00 40 01 c0 00 40 01 c0 | 00 40 01 c0 00 40 01 be |.@...@..|.@...@..|
|00002360| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|00002370| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|00002380| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|00002390| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|000023a0| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|000023b0| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|000023c0| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..|
|000023d0| 00 40 01 be 00 40 01 be | 00 40 01 be 00 00 00 00 |.@...@..|.@......|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+